package generics_and_collections.equals;

/**
 * Created with IntelliJ IDEA.
 * User: Sam
 * Date: 03/02/14
 * Time: 19:16
 * To change this template use File | Settings | File Templates.
 */
public class Moof {

	private int moofValue;

	Moof(int val) {
		moofValue = val;
	}

	public int getMoofValue() {
		return moofValue;
	}

	public boolean equals(Object o) {
		if((o instanceof Moof) && (((Moof)o).getMoofValue() == moofValue)) {
			return true;
		}

		return false;
	}

}
